home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / C++ AppleLink Messages / CPlus.Dev$ 4⁄6⁄90 / 0096-Private Base vs Priv-Apr90 < prev    next >
Encoding:
Text File  |  1990-04-06  |  1.0 KB  |  26 lines  |  [TEXT/GEOL]

  1. Item    3815373                         4-April-90        07:53PDT
  2.  
  3. From:   DEREK                           White, Derek
  4.  
  5. To:     CPLUS.DEV$                      C++ Interest List--Developers
  6.         CPLUS.APPLE$                    C++ Interest List--Apple Employees
  7.  
  8. Sub:    Private Base vs Priv. Field
  9.  
  10.     I am having trouble finding much of a conceptual difference between a class
  11. X that has a private base class Y, and a class Z that has a private member of
  12. the base class Y.  Neither X or Z is a subtype of Y right?  Are the follow the
  13. only differences?:
  14.     1)  In the methods of class X, the members of Y can be accessed directly,
  15.         but in the methods of class Z, member access must be qualified by
  16.         Y.(...).
  17.     2)  Class X can republicize members of class Y (including fields), but
  18.         class Z can only republicize member functions by declaring new member
  19.         functions that call Y's member functions.
  20.     3)  The vTables for X and Z would be different (Z's being smaller).
  21.  
  22. Hope to hear from someone,
  23. Derek White
  24. ATG East/Columbia
  25.  
  26.